package com.anzhen.springboot.activemq;

import org.apache.activemq.command.ActiveMQQueue;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;

import javax.jms.Queue;

@EnableScheduling
@SpringBootApplication
public class SpringBootActivemqApplication {

	public static void main(String[] args) {
		SpringApplication.run(SpringBootActivemqApplication.class, args);
	}
    @Bean
    public Queue queue() {
        return new ActiveMQQueue("sample.queue");
    }
}
